export interface Limit {
  limit: number;
  page: number;
}

interface Pagination extends Limit {
  total_count: number;
}

export interface Sort {
  sort?: number;
  sort_field?: string | null;
}

export type SortAndLimit = Sort & Limit;

export interface ListResult<T> {
  items?: T[] | null;
  pagination?: Pagination;
  sort?: Sort;
}
